package com.t.bricks.bussiness.db.mapper.ordersreturned;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface OrdersReturnedMapper {
	
	/**
	 * 添加
	 * @Param sId
	 * @Param sOrderId
	 * @Param sCustomerId
	 * @Param sMemo
	 * @return int
	 */
	int addCustom(
		@Param("sId") String sId,
		@Param("sOrderId") String sOrderId,
		@Param("sCustomerId") String sCustomerId,
		@Param("sMemo") String sMemo
	);
	
	/**
	 * 修改订单表Orders状态值
	 * @param sOrderId
	 * @param iState
	 * @return
	 */
	int changeOrderState(
		@Param("sOrderId") String sOrderId,
		@Param("iState") int iState
	);
	
	/**
	 * 修改状态值
	 * @param sId
	 * @param iState
	 * @param iVersion
	 * @return
	 */
	int changeState(
		@Param("sId") String sId,
		@Param("iState") int iState,
		@Param("iVersion") int iVersion
	);
	
}
